﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Xml.Serialization;
using System.IO;

namespace BDSim
{
    public class MonitorStation : StationBase  
    {

        #region 构造函数
        public MonitorStation()
        {                   
            DataProvider.Parent = this;
            DataProvider.DefineCommand();
            this.Menu.ItemsSource = DataProvider.MenuCommandList;
        }
        #endregion 

        #region 字段
        [XmlIgnore]
        public MonitorStationDataProvider DataProvider = new MonitorStationDataProvider();
        private ObservableCollection<MonitorReceiver> _MonitorReceivers = new ObservableCollection<MonitorReceiver>();
        #endregion

        #region 属性

        [Browsable(false)]
        public ObservableCollection<MonitorReceiver> MonitorReceivers
        {
            get { return _MonitorReceivers; }
            set { _MonitorReceivers = value; }
        } 
        
        #endregion
        


        #region 初始化
        public override void Init()
       {
            _MonitorReceivers[0].Init(); 
            
           ClkErrCal();

           //初始化完成反馈任务执行量
           DlgAddCompleteMission();
        }
        #endregion

        #region 单步运行

        public override void StepRun()
        {
            _MonitorReceivers[0].StepRun();      
        }
        #endregion    
    }
}
